HTML <col> tag Supported Browsers

HTML Tag

HTML <col> tag defines attributes for table columns within the <colgroup> element, allowing styling and formatting of columns, such as width, alignment, and background color. This tag does not contain closing tags.

Features of HTML <col> tag

which are described below:

  • Column Properties allows setting visual aspects (like background color, width, and alignment) for specific columns.
  • Grouped within <colgroup>, usually nested within the <colgroup>, enabling multiple columns to be collectively defined.
  • Attributes specified in the <col> can be applied to multiple columns at once, simplifying the table’s look.

HTML <col> tag Syntax

<col attribute = "value">

Similar Reads

HTML tag Attributes

The various attributes that can be used with the col tag are listed below. Most of the attributes are not supported by HTML5....

HTML tag Supported Browsers:

...

Contact Us